Skip to content

Merge extended XML documentation. - #389

Open
Red-K0 wants to merge 6 commits into
NetCordDev:mainfrom
Red-K0:alpha
Open

Merge extended XML documentation.#389
Red-K0 wants to merge 6 commits into
NetCordDev:mainfrom
Red-K0:alpha

Conversation

@Red-K0

@Red-K0 Red-K0 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Red-K0 added 2 commits July 12, 2026 01:58
- Added significant amounts of documentation to RestClient, channel and message types, and more.
- Added some missing / newly-added properties and JSON objects.
- Renamed certain flag values for more consistent styling.
- Obsoleted certain deprecated properties.
- Added some missing flags.
@github-actions

Copy link
Copy Markdown

The documentation preview is available at https://preview.netcord.dev/389.

@KubaZ2 KubaZ2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this huge PR! For now I reviewed everything up to UserActivityFlags.

Comment thread NetCord/Channels/TextChannels/Guild/Threads/AnnouncementGuildThread.cs Outdated
Comment thread NetCord/Channels/TextChannels/Guild/Threads/ForumGuildThread.cs
Comment thread NetCord/Channels/TextChannels/Guild/Threads/GuildThread.cs Outdated
Comment thread NetCord/Channels/TextChannels/Guild/Threads/GuildThread.cs Outdated
Comment thread NetCord/Channels/TextChannels/Guild/Threads/UnknownGuildThread.cs Outdated
Comment thread NetCord/Channels/VoiceChannels/Guild/VoiceGuildChannel.cs Outdated
Comment thread NetCord/Channels/IInteractionChannel.cs Outdated
Comment thread NetCord/Channels/UnknownChannel.cs Outdated
Comment thread NetCord/Channels/UnknownGuildChannel.cs Outdated
Comment thread NetCord/Gateway/UserActivityFlags.cs Outdated
Comment thread NetCord/JsonModels/JsonGuildThreadMetadata.cs Outdated
Comment thread NetCord/JsonModels/JsonTeamUser.cs Outdated
Comment thread NetCord/BaseTheme.cs Outdated
Comment thread NetCord/Rest/AttachmentProperties.cs Outdated
Comment thread NetCord/Rest/AttachmentProperties.cs
Comment thread NetCord/Rest/AttachmentProperties.cs
Comment thread NetCord/Rest/EmbedProperties.cs Outdated
Comment thread NetCord/Rest/GuildThreadUser.cs Outdated
Comment thread NetCord/Rest/RestClient.AuditLog.cs Outdated
Comment thread NetCord/Rest/RestClient.AutoModeration.cs
Comment thread NetCord/Rest/RestClient.AutoModeration.cs Outdated
Comment thread NetCord/Rest/RestClient.AutoModeration.cs Outdated
Comment thread NetCord/Rest/RestClient.AutoModeration.cs Outdated
Comment thread NetCord/Rest/RestClient.Channel.cs Outdated
Comment thread NetCord/Rest/RestClient.Channel.cs Outdated
Comment thread NetCord/Rest/RestClient.Channel.cs Outdated
Comment thread NetCord/Rest/RestClient.Channel.cs Outdated
Comment thread NetCord/Rest/RestClient.Channel.cs Outdated
Comment thread NetCord/Rest/RestClient.Webhook.cs Outdated
Comment thread NetCord/Rest/RestClient.Webhook.cs Outdated
Comment thread NetCord/Rest/RestClient.Webhook.cs
Comment thread NetCord/Rest/RestClient.Webhook.cs
Comment thread NetCord/Rest/RestClient.Webhook.cs Outdated
Comment thread NetCord/Rest/RestClient.Webhook.cs Outdated
Comment thread NetCord/Rest/RestClient.Webhook.cs Outdated
Comment thread NetCord/Rest/RestMessage.cs Outdated
Comment thread NetCord/Rest/RestMessage.cs
Comment thread NetCord/Rest/RestRequestProperties.cs Outdated
Comment thread NetCord/Rest/SkuFlags.cs Outdated
Comment thread NetCord/Rest/SkuFlags.cs
Comment thread NetCord/Rest/Webhook.cs Outdated
Comment thread NetCord/Rest/Webhook.cs Outdated
Comment thread NetCord/Rest/Webhook.cs Outdated
Comment thread NetCord/ApplicationFlags.cs Outdated
Comment thread NetCord/ApplicationFlags.cs Outdated
Comment thread NetCord/AttachmentExpirationInfo.cs Outdated
Comment thread NetCord/ChannelFlags.cs
Comment thread NetCord/Attachment.cs Outdated
Comment thread NetCord/Emoji.cs Outdated
Comment thread NetCord/ForumTag.cs Outdated
Comment thread NetCord/ImageFormat.cs
@KubaZ2 KubaZ2 added this to the 1.0.0 milestone Aug 13, 2026
@Red-K0
Red-K0 requested a review from KubaZ2 September 3, 2026 19:58
public int Slowmode => _jsonModel.Slowmode.GetValueOrDefault();

/// <summary>
/// The ID of the channel's parent category.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Red-K0, why was this resolved?

Suggested change
/// The ID of the channel's parent category.
/// The ID of the channel's parent channel.

Comment thread NetCord/ImageUrl.cs
public static ImageUrl ApplicationIcon(ulong applicationId, string iconHash, ImageFormat format)
{
return new($"/app-icons/{applicationId}/{iconHash}", GetFormat(format));
return new($"/application-icons/{applicationId}/{iconHash}", GetFormat(format));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread NetCord/ImageUrl.cs
public static ImageUrl ApplicationCover(ulong applicationId, string coverHash, ImageFormat format)
{
return new($"/app-icons/{applicationId}/{coverHash}", GetFormat(format));
return new($"/application-icons/{applicationId}/{coverHash}", GetFormat(format));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

namespace NetCord;

/// <summary>
/// Contains resolved information for an interaction's auto-populated selection menus.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not only for selection menus. It is used for basically all interactions.
Maybe something like this?

Suggested change
/// Contains resolved information for an interaction's auto-populated selection menus.
/// Contains resolved information for an interaction.


/// <summary>
/// Count of super reactions.
/// The number of applied ssuper reactions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// The number of applied ssuper reactions.
/// The number of applied super reactions.

JsonModels.JsonEmoji IJsonModel<JsonModels.JsonEmoji>.JsonModel => jsonModel;

/// <summary>
/// <inheritdoc cref="CustomEmoji.Id"/> Can be <see langword="null"/> for standard emoji.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it will always be null for standard emoji, currently it isn't that clear.

Suggested change
/// <inheritdoc cref="CustomEmoji.Id"/> Can be <see langword="null"/> for standard emoji.
/// <inheritdoc cref="CustomEmoji.Id"/> <see langword="null"/> for standard emoji.

Comment thread NetCord/Team.cs
/// <summary>
/// Gets the <see cref="ImageUrl"/> of the team's icon.
/// </summary>
/// <param name="format">The format of the returned <see cref="ImageUrl"/>. Defaults to <see cref="ImageFormat.Png"/> (or <see cref="ImageFormat.Gif"/> for animated icons).</param>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't default to anything, it is a required parameter

Comment thread NetCord/Team.cs
/// Gets the <see cref="ImageUrl"/> of the team's icon.
/// </summary>
/// <param name="format">The format of the returned <see cref="ImageUrl"/>. Defaults to <see cref="ImageFormat.Png"/> (or <see cref="ImageFormat.Gif"/> for animated icons).</param>
/// <returns>An <see cref="ImageUrl"/> pointing to the team's icon. If the user does not have one set, returns <see langword="null"/>.</returns>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <returns>An <see cref="ImageUrl"/> pointing to the team's icon. If the user does not have one set, returns <see langword="null"/>.</returns>
/// <returns>An <see cref="ImageUrl"/> pointing to the team's icon. If the team does not have one set, returns <see langword="null"/>.</returns>

Comment thread NetCord/ThreadUser.cs
public ulong ThreadId => jsonModel.ThreadId;

/// <summary>
/// The timetstamp at which the user last joined the thread.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// The timetstamp at which the user last joined the thread.
/// The timestamp at which the user last joined the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants